package com.kpx.app.configs;

import com.kpx.app.Application;
import com.kpx.app.BuildConfig;

public final class Constants {

    /**
     * 是否是测试环境
     */
    public static final boolean DEBUG = true;
    /**
     * 是否打印日志
     */
    public static final boolean PRINT_LOG = DEBUG;

    public static final String IMAGE_FILE_SUFFIX = ".jpeg";
    public static final String IMAGE_GIF_SUFFIX = ".gif";
    public static final String VIDEO_FILE_SUFFIX = ".mp4";
    public static final String AUDIO_FILE_SUFFIX = ".amr";
    public static final String TEXT_FILE_SUFFIX = ".txt";
    public static final String SEPERATOR = "0xd733480";
    public static final String KEY_CURR_SERVER_IP = "KEY_CURR_SERVER_IP";
    public static final String KEY_USER_ID = "KEY_USER_ID";
    public static final String KEY_MAIN_LOCATION_CACHE_DATA = "KEY_MAIN_LOCATION_CACHE_DATA";
    public static final String PATH_FOR_NORMAL_CACHE = Application.instance.getPackageName();

    public static String KEY_USER_TOKEN ="token";
    public static String KEY_USER_RANDOMCODE = "randomCode";

    /**
     * 网络请求成功code
     */
    public final static int CODE_SUCCESS = 0;
    public static final int ERROR_CODE_TIMED_OUT = -3;
    public static final int ERROR_CODE_NETWORK_UNREACHABLE = -2;
    public static boolean JPushConnectionStatus;
    private static String bugly_online = "330c6b7b9b";//线上环境buglyid
    private static String bugly_test = "330c6b7b9b";//测试环境buglyid
    public static String BUGLY_APPID = DEBUG ? bugly_test : bugly_online;
    public static String KEY_REGION_LIST = "key_region_list";
    public static String KEY_BANNER_LIST = "key_banner_list";
    public static String KEY_HELP_LIST = "key_help_list";
    public static String KEY_CATEGERYS_LIST = "key_categerys_list";
    public static String KEY_UPLOADS_LIST = "key_uploads_list";
    public static String KEY_UPLOADS_CACHE_LIST = "key_uploads_cache_list";
    public static String KEY_ADDRESS_LIST = "key_address_list";
    public static String KEY_QDINFO_BEAN = "KEY_qdinfo_bean";
    public static String KEY_SPLASH_BEAN = "key_splash_bean";
    public static String KEY_SELLER_BEAN = "key_seller_bean";
    public static String KEY_TASK_BEAN = "key_task_bean";
    public static String KEY_CERINFO_BEAN = "key_cerinfo_bean";
    public static String KEY_THIIRD_BEAN = "key_thiird_bean";
    public static String KEY_SHARE_BEAN = "key_share_bean";
    public static String KEY_ORDER_ID = "key_order_id";
    public static String KEY_CERTIFICATION_BEAN = "key_certification_bean";
    public static String KEY_ORDER_BEAN = "key_order_bean";
    public static String KEY_WELCOME_BEAN = "key_welcome_bean";
    public static String KEY_USER_PWD = "pwd";
    public static String KEY_USER_PHONE ="phone";
    public static String KEY_THIRD_INFO ="key_third_info";
    public static String KEY_VEDIO_CHCHE ="key_vedio_chche";
    public static String KEY_USER_DMID = "dmid";
    public static String KEY_ISFIRST = "key_isfirst";
    public static String KEY_UPLOAD_BEAN = "key_upload_bean";
    public static String TIME_CODE_1 = "time_code_1";
    public static String TIME_CODE_2 = "time_code_2";
    public static String TIME_CODE_3 = "time_code_3";
    public static String TIME_CODE_4 = "time_code_4";
    public static String TIME_CODE_5 = "time_code_5";


    /**
     * 文件类型
     */
    public enum FileType {
        IMAGE,
        VIDEO,
        AUDIO,
        TEXT
    }
}
